package day240509.p2;

import org.jsoup.Connection;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.select.Elements;

import java.io.IOException;

public class Hangzhou extends JieXi{


    @Override
    public Elements getInfo(int page) throws IOException {
        Connection connection = Jsoup.connect("https://info.19lou.com/xz/xz-330100.html");
        Connection conheader = connection.header("page", String.valueOf(page));
        Document doc= Jsoup.connect("https://info.19lou.com/xz/xz-330100.html").get();
        Elements es = doc.select(".info-content a");
        return es;
    }

    @Override
    public String setLink() {
        return "https://info.19lou.com";
    }
}
